import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  linkActiveClass: 'active',
  routes: [
    {
      path: '/',
      redirect: 'Home' // 页面加载自动导航到Home页面
    },
    {
      path: '/Home',
      name: 'Home',
      component: () => import('@/views/home')
    },
    {
      path: '/Shop',
      name: 'Shop',
      component: () => import('@/views/shop')
    },
    {
      path: '/MyPhone',
      name: 'MyPhone',
      component: () => import('@/views/myPhone')
    },
    {
      path: '/PageOne',
      name: 'PageOne',
      component: () => import('@/views/pageOne')
    },
    {
      path: '/PageTwo',
      name: 'PageTwo',
      component: () => import('@/views/pageTwo')
    },
    {
      path: '/PageThree',
      name: 'PageThree',
      component: () => import('@/views/pageThree')
    },
    {
      path: '/PageFour',
      name: 'PageFour',
      component: () => import('@/views/pageFour')
    },
    {
      path: '/PageFive',
      name: 'PageFive',
      component: () => import('@/views/pageFive')
    }
  ]
})
